package com.study.dao;

import com.study.entity.social_security.ArchiveDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author wfw
 * @Date 2020/08/01 16:46
 */
public interface ArchiveDetailDao extends JpaRepository<ArchiveDetail, String>, JpaSpecificationExecutor<ArchiveDetail> {

    void deleteByArchiveId(String archiveId);

    List<ArchiveDetail> findByArchiveId(String archiveId);

    // 根据用户id和年月查询归档明细
    ArchiveDetail findByUserIdAndYearsMonth(String userId, String yearMonth);

}
